package cn.uce.cc.rest.control;

import cn.uce.base.vo.CcRobotRecordVo;
import cn.uce.srp.api.service.biz.ICcRobotRecordBiz;
import cn.uce.web.common.base.BaseController;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.Map;


@Controller
@RequestMapping(value = "cc/CcRobotRecord")
public class CcRobotRecordController extends BaseController {
    private Logger log = LoggerFactory.getLogger(CcRobotRecordController.class);


    @Resource
    private ICcRobotRecordBiz ccRobotRecordBiz;

    /**
     * 查询科大的人机交互信息
     * @param ccRobotRecordVo
     * @return
     */
    @RequestMapping("/findCcRoBotRecord")
    @ResponseBody
    public Map<String, Object> findCcRoBotRecord(CcRobotRecordVo ccRobotRecordVo){
        try {
            return returnSuccess(ccRobotRecordBiz.findCcRoBotRecord(ccRobotRecordVo));
        } catch (Exception e) {
            log.error("CcRobotRecordController,sendPhoneMessage,Exception",e);
            return  returnError("机器人查询失败");
        }
    }
}
